package com.young.shop.pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

/**
 *
 */

@ApiModel("商品对象")
public class Goods {

    public Goods getId;
	@ApiModelProperty(value = "商品id")
	private Integer id;
	@ApiModelProperty(value = "商品名")
	private String goodsName;
	@ApiModelProperty(value = "价格")
	private BigDecimal price;
	@ApiModelProperty(value = "商品库存")
	private Integer count;
	@ApiModelProperty(value = "商品介绍")
	private String introduction;
	@ApiModelProperty(value = "商品展示")
	private String imgUrl;
	@ApiModelProperty(value = "商品状态")
	private Integer status;
	@ApiModelProperty(value = "商品类型")
	private String type;
	@ApiModelProperty(value = "更新时间")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	private int goodsNumber;

	public int getGoodsNumber() {
		return goodsNumber;
	}

	public void setGoodsNumber(int goodsNumber) {
		this.goodsNumber = goodsNumber;
	}

	@Override
	public String toString() {
		return "Goods{" +
				"id=" + id +
				", goodsName='" + goodsName + '\'' +
				", price=" + price +
				", count=" + count +
				", introduction='" + introduction + '\'' +
				", imgUrl='" + imgUrl + '\'' +
				", status=" + status +
				", type='" + type + '\'' +
				", updateTime=" + updateTime +
				'}';
	}

	public Goods() {
	}

	public Goods(Integer id, String goodsName, BigDecimal price, Integer count, String introduction, String imgUrl, Integer status, String type, Date updateTime) {
		this.id = id;
		this.goodsName = goodsName;
		this.price = price;
		this.count = count;
		this.introduction = introduction;
		this.imgUrl = imgUrl;
		this.status = status;
		this.type = type;
		this.updateTime = updateTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}